<?php
require_once("connect.php");
print "<div id=\"info\">
				<b>NEWS</b>
        <ul id=\"ticker\">";
$sql_news = $PDO->query("SELECT * FROM news_t");
$sql_news->setFetchMode(PDO::FETCH_ASSOC);
while($row_n = $sql_news->fetch()){
  print("<li><span>" . $row_n[titolo] . "</span>" . $row_n[messaggio] . "</li>");
}
print "</ul>
      </div>";
?>